package cn.zgr.ssm.service.impl;

import cn.zgr.ssm.entity.StudentVO;
import cn.zgr.ssm.mapper.StudentMapper;
import cn.zgr.ssm.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements IStudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<StudentVO> showStudentVOList() {
        return getStudentVOList();
    }

    private List<StudentVO> getStudentVOList(){
        return studentMapper.getStudentVOList();
    }
}
